package com.softlab.retailwholesalesystem.entity.VO;
import com.softlab.retailwholesalesystem.entity.DetailOutInWarehouseEntity;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.io.Serializable;

/**
 * VO-移库单-货物名称-仓库名称
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
public class OutInWarehouseGoodsVOEntity implements Serializable {

    private Long detailId;
    private Long outWarehouseId;
    private String outWarehouseName;
    private Long goodsId;
    private String goodsName;
    private Long amount;
    private Long inWarehouseId;
    private String inWarehouseName;

    public OutInWarehouseGoodsVOEntity (DetailOutInWarehouseEntity entity){
        this.detailId = entity.getDetailId();
        this.outWarehouseId = entity.getOutWarehouseId();
        this.goodsId = entity.getGoodsId();
        this.amount = entity.getAmount();
        this.inWarehouseId = entity.getInWarehouseId();
    }
}
